﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace TileEditor
{
	public struct Tile
	{
		int x;
		int y;
		bool render;
		string type;

		public Tile(int x, int y, bool render, string type)
		{
			this.x = x;
			this.y = y;
			this.render = render;
			this.type = type;
		}

		public int X
		{
			get { return x; }
			set { x = value; }
		}

		public int Y
		{
			get { return y; }
			set { y = value; }
		}

		public Point P
		{
			get { return new Point(x, y); }
			set
			{
				x = value.X;
				y = value.Y;
			}
		}

		public bool Render
		{
			get { return render; }
			set { render = value; }
		}

		public string Type
		{
			get { return type; }
			set { type = value; }
		}
	}
}
